﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DiaryPlanner
{
    class CalendarView
    {
        static Planner planner;
        static PlannerDay plannerDay;
        static PlannerWeek plannerWeek;
        static PlannerMonth plannerMonth;

        public static void initPlanner(Planner p, PlannerDay pd, PlannerWeek pw, PlannerMonth pm)
        {
            planner = p;
            plannerDay = pd;
            plannerWeek = pw;
            plannerMonth = pm;
        }

        public static void viewAll()
        {
            if (planner == null) return;
            plannerMonth.viewAll();
            plannerDay.viewAllDB();
            plannerWeek.viewAllDB();
        }
    }
}
